/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package logica;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Meme
 */
@ManagedBean (name = "rating")
@RequestScoped
public class ItemRating {
    private int score;
    private String comment;
    private int user;
    private int restaurant;
    

    /**
     * Creates a new instance of ItemRating
     */
    public ItemRating() {
        score = 0;
        comment = "";
        user = -1;
        restaurant = -1;   
    }
    
    public void setScore(int puntaje) {
        score = puntaje;
    }
    
    public void setComment(String comentario) {
        comment = comentario;
    }
    
    public void setUsrCode(int usuario) {
        user = usuario;
    }
    
    public void setResCode(int restaurante) {
        restaurant = restaurante;
    }
    
    public int getScore() {
        return score;
    }
    
    public String getComment() {
        return comment;
    }
    
    public int getUsrCode() {
        return user;
    }
    
    public int getResCode() {
        return restaurant;
    }    
}
